package net.maku.wx.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import net.maku.framework.common.dao.BaseDao;
import net.maku.wx.entity.WxUserEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 开发者
 *
 * @author Macro
 * @since 1.0.0 2022-09-01
 */
@Mapper
public interface WxUserDao extends BaseDao<WxUserEntity> {

    default WxUserEntity getByOpenid(String openid) {
        return this.selectOne(new QueryWrapper<WxUserEntity>().eq("openid", openid));
    }
}